using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GameStateManagementSample.QuickMath
{
    class MyOperator
    {
        public enum type
        {
            Number,
            Operation,
            OK,
            Empty
        }
        public int m_Sec;
        public type m_First;
        public MyOperator()
        {
            m_First = type.Empty;
            m_Sec = 0;
        }
        public override string ToString()
        {
            string result="";
            switch (m_First)
            {
                case type.Number:
                    result = m_Sec.ToString();
                    break;
                case type.Operation:
                    switch (m_Sec)
                    {
                        case 0: result = " +"; break;
                        case 1: result = " -"; break;
                        case 2: result = " x"; break;
                        case 3: result = " /"; break;
                    }
                    break;
                case type.OK: result = "OK"; break;
                case type.Empty: result="";break;
            }

            return result;
        } 
    }
}
